package com.woniu.dating.service;

import com.woniu.dating.pojo.DatingConcern;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.dating.vo.ConcernVO;
import com.woniu.dating.vo.DatingLoginVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 玖柒
 * @since 2023-05-20
 */
public interface IDatingConcernService extends IService<DatingConcern> {


    /**
     * 关注列表
     * @param datingLoginVO
     * @return
     */
    List<ConcernVO> watchlist(DatingLoginVO datingLoginVO);

    /**
     * 用当前用户id去查询，有则不能重复关注
     * @param datingLoginVO
     * @return
     */
    DatingConcern getDatingConcern(DatingLoginVO datingLoginVO,Integer userId);

    /**
     * 取消关注
     * @param datingLoginVO
     * @param userId
     */
    void cancelConcern(DatingLoginVO datingLoginVO, Integer userId);

    /**
     * 新增关注
     * @param datingLoginVO
     * @param userId
     */
    void addConcern(DatingLoginVO datingLoginVO, Integer userId);
}
